import SvgIcon from './SvgIcon/index.vue'
import Pagination from './pagination/index.vue';
import Category from './Category/index.vue';
//引入element-plus中的所有图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
//注册全局组件的自定义插件
const allGlobalComponent:Record<string,any>={SvgIcon,Pagination,Category}
export default {
    install(app:any){
        Object.keys(allGlobalComponent).forEach((key)=>{
           app.component(key,allGlobalComponent[key]);
        });
        //将element-plus中的所有图标注册为全局组件
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
          }

    }
}